package cn.le.container;

import java.util.LinkedList;
import java.util.Queue;

/**
 * Created by admin on 2017/7/6.
 */
public class QueueCS {

    public static void main(String[] args) {

        Queue<Integer> queue = new LinkedList();

        for(int i = 0; i < 10; i++)
        {
            queue.offer(i);
        }
        int i = 0;
        while (i < 10)
        {
            System.out.println( queue.poll());
            i++;
        }
    }

}
